//package person.learn.conf.mongodb;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.mongodb.core.MongoTemplate;
//import org.springframework.stereotype.Component;
//
///**
// * Created by barton on 16-1-31.
// * 1.具体配置项在application.yml里边
// * 2.测试mongodb需要先在本机启动mongod服务,mongodb链接:https://www.mongodb.com/ 或者直接sudo apt-get install -y
// * mongodb
// * 3.内置mongo db 在pom.xml文件中追加de.flapdoodle.embed:de.flapdoodle.embed.mongo的依赖
// * 4.需要先在mongodb中添加一个admin用户：db.createUser({user:"admin",pwd:"admin",roles:[{role:"readWrite",
// * db:"test"}]})
// * 5.测试mongodb 需要将MongodbConfig CustomerServiceImpl CustomerService
// CustomerServiceImplTest和pom.xml文件的mongodb依赖的注释解开
// */
//@Component
//public class MongodbConfig {
//
//    private MongoTemplate mongoTemplate;
//
//    @Autowired
//    public MongodbConfig(MongoTemplate mongoTemplate) {
//        this.mongoTemplate = mongoTemplate;
//    }
//}
